package m.permission.model;

import m.framework.controller.CurrentUser;
import m.framework.exception.SystemException;

/**
 * @author ming
 * @date 2014年2月18日下午1:51:17
 */
public class User extends UserDto implements CurrentUser{

	public boolean hasPermission(String taskCode) {
		if(this.admin()){
			return true;
		}
		throw new SystemException("未实现");
	}
	
	public boolean admin(){
		if("admin".equals(this.getUserCode())){
			return true;
		}
		return false;
	}
	
}




